<template>
	<view class="box">
		<view @click="toDetailRoom" class="every" v-for="(item,index) in list" :key="index">
			<text>{{item.title}}</text>
			<u-icon name="arrow-right"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				list: []
			};
		},
		onLoad(options) {
			console.log(options.title)
			this.title = options.title
			for (let i = 0; i < 5; i++) {
				this.list[i] = {
					title: options.title + '   10' + (+i + 1)
				}
			}
		},
		methods: {
			// toDetailRoom
			toDetailRoom() {
				uni.navigateTo({
					url: '/pkg-house/add-news/add-news'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		padding: 0 20rpx 0 30rpx;
		box-sizing: border-box;
	}

	.every {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 30rpx 0;
		box-sizing: border-box;
		font-weight: regular;
		font-size: 28rpx;
		line-height: 1.5;
	}
</style>
